#include "w32console.h"

int main(int argc, char** argv)
{
	int color, oldColor;
	oldColor = W32Console::GetForegroundColor();
	color = oldColor;

	W32Console::Print("Testing progressbar \n\n");

	W32Console::ProgressbarCtx ctx;
	W32Console::InitProgressbar(&ctx, "Downloading:");
	W32Console::SetProgressbarColors(&ctx, FOREGROUND_RED|FOREGROUND_INTENSITY, FOREGROUND_GREEN|FOREGROUND_INTENSITY);

	for (int i = 0; i <= 100; ++i)
	{
		W32Console::UpdateProgressbar(&ctx, i);
		Sleep(100);
	}

	W32Console::Print("\n\nTest ended\n");

	return 0;
}
